from rest_framework.views import APIView

from rest_framework.authentication import SessionAuthentication
from rest_framework.authentication import BasicAuthentication
from rest_framework.authentication import TokenAuthentication


# def process_response(request, response):
#     # 添加响应头
#     response["Access-Control-Allow-Origin"] = "*"


class AuthView(APIView):
    authentication_classes = [BasicAuthentication, TokenAuthentication, SessionAuthentication]
